import Login from "../pages/login/login";
import Index from "../components/IndexManage/Index";
import IndexManage from '../components/IndexManage/IndexManage'
import Role from '../components/Role/Role'
import PageNotFound from "../pages/error/PageNotFound";
import ModulePage from '../components/ModulePage/ModulePage';
import ModuleManage from "../components/ModulePage/ModuleManage";
import ManagePage from "../components/ManagePage/ManagePage";
import User from '../components/User/User'
import Edit from '../components/CKEditor/Edit'
import Notice from '../components/Notice/Notice'
import Activity from "../components/Activity/Activity";
import {UnlockOutlined,UsergroupAddOutlined,MenuUnfoldOutlined,HomeOutlined,LineChartOutlined} from '@ant-design/icons';
import AutoTable from "../components/IndexManage/AutoTable";
import ArticleContent from "../components/IndexManage/ArticleContent";
import SubscribeLog from "../components/Subscribe/SubscribeLog";
import ModuleLog from "../components/ModulePage/ModuleLog";
import LoginLog from "../components/Log/LoginLog";
import ActivityLog from "../components/Activity/ActivityLog";
import NoticeLog from "../components/Notice/NoticeLog";
import WorkManage from "../components/WorkManage/WorkManage";

export const mainRoutes = [
    {
        path: '/login',
        component: Login
    },
    {
        path: '/404',
        component: PageNotFound
    },
]
export const featureRoutes = [
    {
        path: '/eip/index',
        component: Index,
    },
        //type:notice,activity,folder
    {
        path: '/eip/table/:type',
        component: AutoTable
    },
    {
        //type:notice,activity,file,folder,article
        //id:noticeId,activityId,fileId,folderId,articleId
        path: '/eip/file/:type/:id',
        component: ArticleContent,
    },
    {
        path: '/404',
        component: PageNotFound,
    },
    //
    {
        path: '/eip/module/:id',
        component: ModulePage,
        exact: true,
        isShow: true,
        title: "ware manage",
        // icon: "home",
        module_title: "1"
    },
    //后台管理部分的面包屑
    {
        path: '/eip/manage',
        component: ManagePage,
    },
    {
        path: '/eip/role',
        component: Role,
        parentPath: '/eip/manage',
        name: "角色管理",
        type: "file",
        icon: UnlockOutlined
    },
    {
        path: '/eip/user',
        component: User,
        parentPath: '/eip/manage',
        name: "用户管理",
        type: "file",
        icon: UsergroupAddOutlined
    },
    {
        path: '/eip/module-manage/:id',
        component: ModuleManage,
        parentPath: '/eip/manage',
        name: "模塊管理",
        type: "folder",
        icon: MenuUnfoldOutlined
    },
    {
        path: '/eip/module-manage-log',
        component: ModuleLog,
        parentPath: '/eip/manage',
        name: "模塊日誌",
        type: "file",
        icon: MenuUnfoldOutlined
    },
    {
        path: '/eip/loginLog',
        component: LoginLog,
        parentPath: '/eip/manage',
        name: "登錄日誌",
        type: "file",
        icon: MenuUnfoldOutlined
    },
    {
        path: '/eip/index-manage',
        component: IndexManage,
        parentPath: '/eip/manage',
        name: "首页管理",
        type: "file",
        icon: HomeOutlined
    },
    {
        path: '/eip/log',
        parentPath: '/eip/manage',
        name: "日志管理",
        component: IndexManage,
        type: "file",
        icon: LineChartOutlined
    },
    {
        path: '/eip/notice-manage',
        parentPath: '/eip/manage',
        name: "公告管理",
        type: "file",
        component: Notice,
        icon: LineChartOutlined
    },
    {
        exact:true,
        path: '/eip/activity-manage',
        parentPath: '/eip/manage',
        name: "活动管理",
        type: "file",
        component: Activity,
        icon: LineChartOutlined
    },
    {
        exact:true,
        path: '/eip/subscribeLog',
        parentPath: '/eip/manage',
        name: "訂閱日誌",
        type: "file",
        component: SubscribeLog,
        icon: LineChartOutlined
    },
    {
        path: '/eip/activityLog',
        parentPath: '/eip/manage',
        name: "活動日誌",
        type: "file",
        component: ActivityLog
    },
    {
        path: '/eip/noticeLog',
        parentPath: '/eip/manage',
        name: "公告日誌",
        type: "file",
        component: NoticeLog
    },
    {
        path: '/eip/activity-manage-content/:id',
        component: ArticleContent
    },
    {
        path: '/eip/notice-manage-content/:id',
        component: ArticleContent
    },
    {
        path: '/eip/ueditor',
        component: Edit
    },
    {
        path: '/eip/item-manage',
        component: WorkManage
    },
    {
        path: '/eip/item-manage',
        component: WorkManage
    }
]

